package com.yj.springbootmiaosha.mapper;

import com.yj.springbootmiaosha.entity.DistributeLock;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface DistributeLockDao {
    int deleteByPrimaryKey(Integer id);

    int insert(DistributeLock record);

    int insertSelective(DistributeLock record);

    DistributeLock selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(DistributeLock record);

    int updateByPrimaryKey(DistributeLock record);

    DistributeLock selectForUpdate(@Param("bussinessCode") String bussinessCode);
}